package scau.redi.social_platform.service;

import scau.redi.social_platform.common.util.ResponsePageUtil;
import scau.redi.social_platform.domain.pojo.Shared;
import scau.redi.social_platform.domain.vo.BriefSharedVO;
import scau.redi.social_platform.domain.vo.DetailSharedVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author redi
 * @since 2022-05-05
 */
public interface SharedService {

    int createShared(Shared shared);

    int deleteShared(int sharedId);

    int updateShared(Shared shared);

    Shared findById(int sharedId);

    DetailSharedVO findDetailById(int sharedId);

    ResponsePageUtil<BriefSharedVO> findAllByPage(int page, int size);

    ResponsePageUtil<BriefSharedVO> findAllByLikedSum(int page, int size);

    ResponsePageUtil<BriefSharedVO> findAllByTime(int page, int size);

    List getSharedComment(int page, int size, int sharedId);

}
